//
//  ChatMessageCell.m
//  YSSmartHome
//
//  Created by yanghao on 26/05/2017.
//  Copyright © 2017 yahaong. All rights reserved.
//

#import "ChatMessageCell.h"

@implementation ChatMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - getters and setters 
- (void)setMessage:(ZTMessage *)message
{
    _message = message;
    self.messageLabel.text = message.text;
    
}
//- (CGFloat)cellHeight
//{
//    [self layoutIfNeeded];
//    
//}
@end
